.actions {
  height: 100%;
  width: 100%;
}

.wrap {
  overflow: hidden;
  border-radius: var(--mantine-radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 0;
  /* 
    The padding-bottom for aspect ratio should be set inline via style prop:
    style={{ paddingBottom: `${aspectRatio * 100}%` }}
  */

  >div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}